#include<stdio.h>
int main()
{
	int n;
	scanf("%d",&n);
	float num;
	num=n*12*2.54*10;
	printf("%g",num);
	return 0;
}
